using System.Net;

namespace DotnetSpider.Extensions;

public static class HttpStatusCodeExtensions
{
    public static bool IsSuccessStatusCode(this HttpStatusCode statusCode)
    {
        return statusCode >= HttpStatusCode.OK && statusCode <= (HttpStatusCode) 299;
    }
}